/**
 * 
 */
package map.model;

import java.util.ArrayList;

/**
 * @author balage
 *
 */
public class Map {

	public final java.util.List<MapNode> nodes = new ArrayList<MapNode>();

	public final java.util.List<MapWay> ways = new ArrayList<MapWay>();
	
	public void addItem(MapItem item){
		if (item instanceof MapNode)
			if (!nodes.contains(item))
				nodes.add((MapNode)item);
		if (item instanceof MapWay){
			if (!ways.contains(item))
				ways.add((MapWay)item);
		}
		
	}
	
}
